<html xmlns:th="http://www.thymeleaf.org" lang="en">
<!DOCTYPE html>
<head th:replace="common/common_header :: common_header(~{::title},~{::link},~{})">
    <meta charset="UTF-8">
    <title>选择重启服务器</title>


</head>
<body>
<div class="bg">
<h1>XIAO BU FOREVER</h1>

    <!--模态框loading-->
    <div class="modal fade" id="loading" data-backdrop="static" data-keyboard="false"
         tabindex="-1" role="dialog" aria-labelledby="exampleModalLabel" aria-hidden="true">
        <div class="modal-dialog" role="document">
            <div class="loading">
                <span></span>
                <span></span>
                <span></span>
                <span></span>
                <span></span>
            </div>
        </div>
    </div>
    <!--模态框loading-->

<div class="form-group">
    <label for="exampleFormControlSelect2" id="labelHead"></label>

    <!--导航条模块-->
    <nav class="navbar navbar-default">
        <div class="container-fluid">
            <!-- Brand and toggle get grouped for better mobile display -->
            <div class="navbar-header">
                <button type="button" class="navbar-toggle collapsed" data-toggle="collapse"
                        data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                    <span class="sr-only">Toggle navigation</span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                    <span class="icon-bar"></span>
                </button>
                <a class="navbar-brand" href="#" id="project">Navbar</a>
            </div>

            <!-- Collect the nav links, forms, and other content for toggling -->
            <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
                <ul class="nav navbar-nav">
                    <li><a th:href="@{/remote/project}">HOME <span class="sr-only">(current)</span></a></li>
                    <li><a class="glyphicon glyphicon-refresh" href="#" onclick="reloadForm()"></a></li>
                </ul>
                <form class="navbar-form navbar-right">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search" oninput="filterList(this.value.trim())">
                    </div>
                </form>
            </div><!-- /.navbar-collapse -->
        </div><!-- /.container-fluid -->
    </nav>
    <!--导航条模块-->

    <div>
        <select multiple class="form-control" id="exampleFormControlSelect2" th:id="servers" th:name="idList">

        </select>
        <button type="button" class="btn btn-primary" data-toggle="modal"
                data-target="#exampleModal"  onclick="submitServerList()">
            确认提交
        </button>
    </div>

</div>
</div>

<div th:replace="common/common_foot :: foot"></div>

<script th:src="@{/assets/js/remote/remote_restart/ajaxFunction.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/remote/remote_restart/remote_restart.js}" type="text/javascript"></script>
<script th:src="@{/assets/js/remote/remote_restart/innerFunction.js}" type="text/javascript"></script>
</body>
</html>